package com.lyx.server.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lyx.server.entity.UserInvite;
import org.apache.ibatis.annotations.Select;

/**
 * --- Be Humble and Hungry ---
 *⽤户邀请表(UserInvite)表数据库访问层
 * @author Liyuexian
 * @date 2024/8/12
 * @desc
 */
public interface UserInviteDao extends BaseMapper<UserInvite> {

    @Select("select u.name from t_user_invite ui inner join t_user u on ui.uid = u.id where askuid = #{uid}")
    String selectByAskuid(Integer uid);
}
